package com.sumainfor.pc.market.controller.gmio;

import com.sumainfor.pc.market.dao.gmio.GmioTenantPactMapper;
import com.sumainfor.pc.market.service.gmio.GmioTenantPactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 根据房源编号获取在租租客
 * <p>
 *
 * @author: zc
 * @create: 2019-10-29 14:39
 **/
@Controller
@RequestMapping("/key/GmioTenantPact")
public class GmioTenantPactController {

    @Autowired
    GmioTenantPactService gmioTenantPactService;

    @ResponseBody
    @GetMapping("/getTenantPact")
    public List<Map<String,Object>> getTenantPact(@RequestParam String HouId){
        return gmioTenantPactService.getTenantPact(HouId);
    }


}
